package com.dfbz.demo01_静态常量;

import org.junit.Test;

import java.util.Calendar;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo01 {
    @Test
    public void test1() {

        method(Season.SUMMER);
        method(Season.WINTER);
        method(Season.SPRING);

    }
    public void method(Integer season) {

        switch (season) {
            case 789741:
                System.out.println("Spring!");          // 具体的逻辑
                break;
            case 1234:
                System.out.println("Summer!");           // 具体的逻辑
                break;
            case 46541:
                System.out.println("Autumn!");          // 具体的逻辑
                break;
            case 748954:
                System.out.println("Winter!");           // 具体的逻辑
                break;
        }
    }
}
